//
//  KKOrderVController.swift
//  MVVMSwfit
//
//  Created by CarShare on 2018/12/10.
//  Copyright © 2018年 CarShare. All rights reserved.
//

import UIKit

class KKOrderVController: KKBaseVController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // Do any additional setup after loading the view.
        
        configOrderTable()

    }

}
//MARK: --- 配置 tableViewUI
extension KKOrderVController{
    
    func configOrderTable() -> Void {
        configTableView(tableFrame: CGRect(x: 0, y: -UIApplication.shared.statusBarFrame.height, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height), cellClass: KKOrderTableCell.self)
        
        let tabHeadV = UIView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 200))
        tabHeadV.backgroundColor = #colorLiteral(red: 0.1407573819, green: 0.4486857057, blue: 0.9162339568, alpha: 1)
        tableView?.tableHeaderView = tabHeadV
    }
}
//MARK: --- UITableViewDataSource
extension KKOrderVController{
    
    override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        return 3
    }
    override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
        let cell:KKOrderTableCell = tableView.dequeueReusableCell(withIdentifier: NSStringFromClass(KKOrderTableCell.self), for: indexPath) as! KKOrderTableCell
        
        return cell
    }
    func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
        return 150.0
    }
}
